﻿namespace TestTool.Tests.Definitions.Data
{
    using System;
    using System.Runtime.CompilerServices;

    public class NICListItem
    {
        public NICListItem(NetworkInterfaceDescription nic, bool hwStyle)
        {
            this.NIC = nic;
            this.HWStyle = hwStyle;
        }

        public override string ToString()
        {
            if (this.NIC == null)
            {
                return string.Empty;
            }
            return this.NIC.ToString(this.HWStyle);
        }

        public bool HWStyle { get; protected set; }

        public NetworkInterfaceDescription NIC { get; protected set; }
    }
}

